package com.homework;

public class TestRectangle {
    public static void main(String[] args) {
    Rectangle rt = new Rectangle();
    rt.setLength(8);
    rt.setWidth(6);
    rt.area();
        System.out.println("长为:"+rt.getLength()+"宽为:"+rt.getWidth()+"的矩形的面积为:"+rt.area());
    Rectangle rt1 = new Rectangle(8,6);
        System.out.println("长为:"+rt1.getLength()+"宽为:"+rt1.getWidth()+"的矩形的周长为:"+rt1.size());
    }
}
